package com.gyc.simple.sysuser.controller;

import com.gyc.simple.sysuser.service.remote.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ActuatorHealth {

    @Autowired
    private HelloService helloService;

    @GetMapping("/actuator/health")
    public String health(){
        return "SUCCESS";
    }

    @GetMapping("/hello")
    public String hello(String name){
        return helloService.sayHello(name);
    }
}
